package com.gxuwz.hmr.project.system.organ.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 医疗机构管理对象 sys_organ
 * 
 * @author ruoyi
 * @date 2021-05-05
 */
public class Organ extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 机构编号 */
    private Long orginId;

    /** 机构名称 */
    @Excel(name = "机构名称")
    private String orginName;

    /** 成立时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成立时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orginTime;

    public void setOrginId(Long orginId)
    {
        this.orginId = orginId;
    }

    public Long getOrginId()
    {
        return orginId;
    }
    public void setOrginName(String orginName)
    {
        this.orginName = orginName;
    }

    public String getOrginName()
    {
        return orginName;
    }
    public void setOrginTime(Date orginTime)
    {
        this.orginTime = orginTime;
    }

    public Date getOrginTime()
    {
        return orginTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orginId", getOrginId())
            .append("orginName", getOrginName())
            .append("orginTime", getOrginTime())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
